package com.example.demo;

import com.example.demo.service.Student;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Scanner;

@ComponentScan("com")
@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        Student ajax = Student.success("123");
        ArrayList<String> list1 = new ArrayList<>();
        list1.add("三");
        list1.add("更");
        list1.add(0, "[");
//        for (int i = 0; i < list1.size(); i++) {
//            System.out.println(list1.get(i));
//        }
//        Iterator<String> iterator = list1.iterator();
//        while (iterator.hasNext()){
//            String next = iterator.next();
//            if("更".equals(next)){
//                list1.remove(next);
//            }
//            System.out.println(next);
//        }
//        for (String s : list1) {
////            if ("更".equals(s)) {
////                list1.remove(s);
////            }
//            System.out.println(s);
//        }
        HashMap<String,String> map =  new HashMap<>();
        map.put("name","三更");
        map.put("age","15");
        String put = map.put("name", "三更草堂");
        System.out.println(put);


    }

}
